package com.zw.design.pattern.creational.structural.proxy;

public class IOrderServiceImpl implements  IOrderService{

    private IOrderDao IOrderDao;

    @Override
    public int saveOrder(Order order) {
        IOrderDao=new IOrderDaoImpl();
        System.out.println("order = service层调用dao层 " + order);
        return IOrderDao.insert(order);
    }
}
